﻿@using WikeSoft.Core
@using WikeSoft.WorkFlowEngine.Models
@{
    ViewBag.Title = "Contact";
    Layout = "~/Views/Shared/_FrameLayout.cshtml";
    string objectId = Request["objectId"];
    string instanceId = Request["instanceId"];
   
}



<ul class="nav nav-tabs nav-justified">
    <li role="presentation" class="active" target="tab1"><a href="#">流程处理信息</a></li>
    @if (!string.IsNullOrEmpty(objectId))
    {
        <li role="presentation" target="tab2"><a href="#">请假信息</a></li>
    }
</ul>

<div class="bs-example">

    <div id="tabcontainer">
        <div id="tab1" class="tab-content">
            @if (!string.IsNullOrEmpty(instanceId))
            {
                <iframe src="/WorkFlowInstance/GetTaskView?instanceId=@instanceId" style="width: 100%; height: 500px"></iframe>
            }
        </div>
        <div id="tab2" class="tab-content" style="display: none">
            @if (!string.IsNullOrEmpty(objectId))
            {
                <iframe src="/Holiday/DetailView?id=@objectId" style="width: 100%; height: 500px"></iframe>
            }
        </div>
        
    </div>
</div>



